﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using model;
using Bll;

public partial class Resumel : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["username"] == null)
        {
            Response.Write("<script>alert('请先登录！');history.back();</script>");
        }
        bindGridView();
    }
    void bindGridView()
    {
        string sword = "";
        string kword = "";
        ResumeSBll bll = new ResumeSBll();
        List<ResumeS> datas = bll.GetList(sword, kword);
        GridView1.DataSource = datas;
        GridView1.DataBind();
    }
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        bindGridView();
    }
}